home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / ts-enum.tip < prev    next >
Text File  |  1993-09-15  |  2KB  |  70 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 11.3.2, p. II-75.
  16. % Original source in file "par2.TEX", starting line 1351.
  17. \wlog{L: "ts-enum.tip" ["par2.TEX," l. 1351, p. II-75]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{enumlist.tip}
  20. \InputD{ts-fonts.tip}
  21. \InputD{widestc.tip}
  22. \catcode`\@ = 11
  23. \newdimen\@WidthLevelOneLabels
  24. \FindWidestChar{\@WidthLevelOneLabels}{\normalsize\rm}%
  25.     {`\0}{`\9}
  26. \setbox 0 = \hbox{.\hskip 1em}
  27. \advance\@WidthLevelOneLabels by \wd0
  28. \def\@BeginEnumerateLevelOne{% 
  29.     \BeginAList{\@WidthLevelOneLabels}{0pt}{1em}%
  30.         {12pt}{0pt}%
  31.         {0pt}{15pt}%
  32. }
  33. \newdimen\@WidthLevelTwoLabels
  34. \FindWidestChar{\@WidthLevelTwoLabels}{\normalsize\rm}%
  35.     {`\a}{`\j}
  36. \setbox 0 = \hbox{()\hskip 1em}
  37. \advance\@WidthLevelTwoLabels by \wd0
  38. \def\@BeginEnumerateLevelTwo{%
  39.     \BeginAList{\@WidthLevelTwoLabels}{0pt}{10pt}%
  40.         {6pt}{0pt}%
  41.         {0pt}{15pt}%
  42. }
  43. \newdimen\@WidthLevelThreeLabels
  44. \setbox 0 = \hbox{viii.\hskip 1em}
  45. \@WidthLevelThreeLabels = \wd0
  46. \def\@BeginEnumerateLevelThree{%
  47.     \BeginAList{\@WidthLevelThreeLabels}{0pt}{10pt}%
  48.         {6pt}{0pt}%
  49.         {0pt}{15pt}%
  50. }
  51. \newdimen\@WidthLevelFourLabels
  52. \FindWidestChar{\@WidthLevelFourLabels}{\normalsize\rm}%
  53.     {`\A}{`\J}
  54. \setbox0 = \hbox{()\hskip 1em}
  55. \advance\@WidthLevelFourLabels by \wd0
  56. \def\@BeginEnumerateLevelFour{%
  57.     \BeginAList{\@WidthLevelFourLabels}{0pt}{10pt}%
  58.         {6pt}{0pt}%
  59.         {0pt}{15pt}%
  60. }
  61. \def\EnumerateLevelOneExtended{% 
  62.     \par
  63.     \FindWidestChar{\@WidthLevelOneLabels}{\normalsize\rm}%
  64.     {`\0}{`\9}
  65.     \multiply\@WidthLevelOneLabels by 2
  66.     \setbox 0 = \hbox{.\hskip 1em}%
  67.     \advance\@WidthLevelOneLabels by \wd0
  68. }
  69. \catcode`\@ = 12
  70.